<template>
<div>
  <p v-text="msg"></p>
  <p v-html="msg"></p>
</div>
</template>

<script setup>
    import {ref} from 'vue';
    const msg = ref('<span style="color:red;">Hello Vue3+Vite</span>');
</script>

<style scoped>

</style>